<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2025/7/1
  Time: 9:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>提交服务申请</title>
    <style>
        .application-form {
            max-width: 600px;
            margin: 30px auto;
            padding: 20px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .form-group {
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        select, input, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .btn-submit {
            background-color: #4CAF50;
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .download-btn {
            display: inline-block;
            background-color: #4CAF50;
            color: white;
            padding: 8px 15px;
            border-radius: 4px;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .download-btn:hover {
            background-color: #45a049;
        }

        .download-btn i {
            margin-right: 5px;
        }
    </style>
</head>
<body>
<jsp:include page="/WEB-INF/views/user/head.jsp"/>
<div class="container">
    <h1>提交服务申请</h1>

    <form class="application-form" action="${pageContext.request.contextPath}/application/submit" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label for="application_type">申请类型</label>
            <select id="application_type" name="application_type" required>
                <option value="">-- 请选择 --</option>
                <option value="HOST">寄养家庭</option>
                <option value="DOG_WALKING">遛狗服务</option>
            </select>
        </div>

        <!-- 添加下载链接 -->
        <div style="margin-bottom: 10px;">
            <a href="${pageContext.request.contextPath}/static/documents/申请表.docx"
               download="寄养家庭申请表.docx"
               class="download-btn">
                <i class="fas fa-download"></i> 下载调查文档
            </a>
        </div>


        <!-- 文件上传控件 -->
        <input type="file" id="document" name="document" accept=".pdf,.doc,.docx" required>
        <small>请先下载上方文档，填写完整后上传</small>

        <button type="submit" class="btn-submit">提交申请</button>
    </form>
</div>
</body>
</html>
